package com.gf.snoopy.dto;

import java.util.Date;

import com.gf.snoopy.constants.enumc.CompanyType;

public class CompanyDto {
	   private Integer id;

	    private String name;

	    private Integer type;
	    
	    private String typeStr;

	    private Date createDate;

	    private String memo;

	    public Integer getId() {
	        return id;
	    }

	    public void setId(Integer id) {
	        this.id = id;
	    }

	    public String getName() {
	        return name;
	    }

	    public void setName(String name) {
	        this.name = name == null ? null : name.trim();
	    }

	    public Integer getType() {
	        return type;
	    }

	    public void setType(Integer type) {
	        this.type = type;
	        CompanyType companyType = CompanyType.parse(type);
	        typeStr = companyType==null?"":companyType.getDesc();
	    }

	    public Date getCreateDate() {
	        return createDate;
	    }

	    public void setCreateDate(Date createDate) {
	        this.createDate = createDate;
	    }

	    public String getMemo() {
	        return memo;
	    }

	    public void setMemo(String memo) {
	        this.memo = memo == null ? null : memo.trim();
	    }

		public String getTypeStr() {
			return typeStr;
		}

		public void setTypeStr(String typeStr) {
			this.typeStr = typeStr;
		}
}
